#include "include/wormgen.h"

wormgen::wormgen()
{
    //ctor
    wormcnti = 0;
}

/** @brief (one liner)
  *
  * (documentation goes here)
  */
 wormgen::wormgen(int rand)
{
    // take a random number, generate a type of worm and push it to the "array"
    worm *w;

    if(rand == 0) w = new vegetarian();
    else if(rand == 1) w = new cannibal();
    else if(rand == 2) w = new scissorhead();

    wormcnt[wormcnti] = *w;
}

wormgen::~wormgen()
{
    //dtor
}
